


<!doctype html public "-//IETF//DTD HTML//EN">
<html>

<head>

<title>
CPS710
Assignment 2 Testing
</title>

<LINK REL=StyleSheet HREF="/~cps710/CSS/h.css" TYPE="text/css" MEDIA=screen>
<LINK REL=StyleSheet HREF="/~cps710/CSS/main.css" TYPE="text/css" MEDIA=screen>
<LINK REL=StyleSheet HREF="/~cps710/CSS/theme.css" TYPE="text/css" MEDIA=screen>

</head>




<body>

<center> <table noborder width=100%>

<tr>

<td align=left valign=top width=125>
<h1><a href="/~cps710/" target="_top" class="NOUNDERLINE"> CPS710 </a></h1>
</td>

<td align=center valign=top>
<h1>

Assignment 2 Testing
</h1>

<td align=center valign=top width=125>
<a href="http://www.ryerson.ca"
	onmouseover="parent.window.status='General Information about Ryerson'; return true" >
	<IMG SRC="/~cps710/Pictures/Ryerson2linesMedium.gif" ALT="Ryerson University" border=0></a>
	</a>

</tr>

<tr>
<td align=center valign=top width=125>

</td>

<td align="center" valign="top">


</td>

<td align=center valign=top width=125>

</td>



</tr></table></center>

<hr>


Your assignment will be tested and graded on elara.scs.ryerson.ca
using sh scripts and version 4.0 of JavaCC and JJTree.
<p>A <b>complete</b> description of the testing,
including all the files used can be found on this page.
You are strongly encouraged to perform your own testing following
this procedure before submitting your assignment.
<p>
Below is the process we will use to test your assignment.
For all the tests, your program will be linked with
the 2 java source files we gave you:
<a href="Java/ParseAbortException.java">ParseAbortException.java</a>
and
<a href="Java/SimpleNode.java">SimpleNode.java</a>
as well as our own versions of
Token.java, NumberToken.java, CharacterToken.java, and StringToken.java
unles you submit replacements for these.
<ul>

<li>We will first retrieve your submission using the 
<a href="Scripts/teststudent">teststudent sh script</a>.

<p><li>Then, we will look at what you submitted in A2.zip to decide which
<a href="Java/">TestParser class</a>
to link with your submission.
<br>The <a href="Scripts">makefile with the same number as the TestParser file</a> 
will be used to compile your assignment.

<p><li>Part 1 of the assignment (grammar manipulation)
will not be explicitly tested.
Instead, it will be tested with part 2.


<p><li>Part 2 of the assignment (language recognition) 
will normally be tested along with part 4 (syntax tree generation).
However, there are separate marks associated with part 2 of the
assignment, so if you don't manage to work on part 4, you
can submit Parser.jj instead of Parser.jjt.
We will then test only the language recognition using the same test
files normally used to test part 4.

<p><li>Part 3 of the assignment (error management)
will be tested with the testerror.hl you submit
following your instructions on the marking sheet.
<ul>
<li>If A2.zip does not contains a testerror.hl file
or we don't find any testing instructions on the marking sheet,
we will interpret that as an indication that part 3 was not
done, and will simply move on to part 4.
<li>If you did submit testerror.hl and testing instructions for it,
we will test your program with ParseAbortException.MAXERROR set to
<ul>
<li><a href="Java/ParseAbortException6.java">6</a>
to verify that your 10 error recoveries are fully functional.
<li><a href="Java/ParseAbortException3.java">3</a>
to verify that you are counting errors and aborting parsing when
too many errors are detected.
</ul>
</ul>


<p><li>Part4 of the assignment (syntax tree generation)
will be tested by running all each of the test*.hl files in the
<a href="TestFiles">TestFiles directory</a>
and comparing it with its associated results* file.

</ul>

Here are the subdirectories containing all the files refered to above:
<ul>
<li><a href="Java">Java: Java programs</a>
<p><li><a href="Scripts">Scripts: makefiles and testing scripts</a>
<p><li><a href="TestFiles">TestFiles: test and test result files</a>
</ul>

<p><hr>
<center>

This page is maintained by
Sophie Quigley
(<a href="mailto:cps710@scs.ryerson.ca">cps710@scs.ryerson.ca</a>)


<br>
Last modified 
Monday, 06-Nov-2006 00:37:15 EST

</center>

</body>
</html>




